package com.orange.base.component.biztool.simulateddata.service.impl;

import com.orange.base.component.biztool.simulateddata.service.SimulatedDataEnum;
import com.orange.base.component.biztool.simulateddata.service.SimulatedDataParam;

/**
 * 年
 *
 * @author biankudingcha
 * @date: 2022-08-24
 * @since 0.5.0
 */
public class YearStrategy extends DateTimeStrategy {

    public String getType() {
        return SimulatedDataEnum.YEAR.getName();
    }

    public String getCaption() {
        return SimulatedDataEnum.YEAR.getCaption();
    }

    @Override
    public Object getValue(SimulatedDataParam param) {
        return generate(param);
    }

    public static String generate(SimulatedDataParam param) {
        return getYear(null, null);
    }

}
